#ifndef _TIRE_H_
#define _TIRE_H_

class cTire {
 public:
	cTire(int x, int y);
	~cTire();

	void drawTire(void);
	void drawTire_obsolete(void);
	void rotateTire(int degrees);
	int getAngle();
	void rotateMatrix(int degrees);
	void calcVertices(void);

 private:
 	//variables
	int m_xpos, m_ypos;
	int m_angle;
	int m_tireDiameter;
	int m_tireWidth;
	struct Vertex {
		double x;
		double y;
	};
	int m_matrixAngle;

	Vertex m_leftMiddleVert;
	Vertex m_leftFrontVert;
	Vertex m_rightFrontVert;
	Vertex m_rightMiddleVert;
	Vertex m_rightBottomVert;
	Vertex m_leftBottomVert;

	//functions
	double sinus(int degrees);
	double cosinus(int degrees);

};

#endif
